﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="CustomerRegister.aspx.cs" Inherits="CustomerRegister" %>

<%@ Register assembly="obout_TextMenu" namespace="OboutInc.TextMenu" tagprefix="tm" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width: 100%;">
        <tr>
            <td align="center" colspan="3" style="text-align: center;" valign="top">
                <asp:Label ID="Label1" runat="server" Text="ĐĂNG KÍ KHÁCH HÀNG" Font-Bold="True" 
                    Font-Size="Large"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="text-align: right; width: 30%; vertical-align: top;">
                <asp:Label ID="Label2" runat="server" Text="Họ và tên:"></asp:Label>
            </td>
            <td style="vertical-align: top; text-align: left; width: 40%">
                <asp:TextBox ID="txtCusName" CssClass="text-input" runat="server" Width="264px"></asp:TextBox>
            </td>
            <td style="text-align: left; width: 30%; vertical-align: top;">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtCusName" CssClass="notification" 
                    ErrorMessage="Chưa nhập tên" Font-Bold="True" ForeColor="Red" 
                    ValidationGroup="formCus"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="text-align: right; width: 30%; vertical-align: top;">
                <asp:Label ID="Label7" runat="server" Text="Điện thoại liên lạc"></asp:Label>
            </td>
            <td style="vertical-align: top; text-align: left; width: 40%">
                <asp:TextBox ID="txtCusPhone" CssClass="text-input" runat="server" Width="264px"></asp:TextBox>
            </td>
            <td style="text-align: left; width: 30%; vertical-align: top;">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ControlToValidate="txtCusPhone" CssClass="notification" 
                    ErrorMessage="Chưa nhập số điện thoại" Font-Bold="True" ForeColor="Red" 
                    ValidationGroup="formCus"></asp:RequiredFieldValidator>
                <br />
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                    ControlToValidate="txtCusPhone" ErrorMessage="Nhập sai định dạng số" 
                    Font-Bold="True" ForeColor="Red" ValidationExpression="\d*" 
                    ValidationGroup="formCus" CssClass="notification"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td style="text-align: right; width: 30%; vertical-align: top;">
                <asp:Label ID="Label5" runat="server" Text="Địa chỉ:"></asp:Label>
            </td>
            <td style="vertical-align: top; text-align: left; width: 40%">
                <asp:TextBox ID="txtCusAdd" CssClass="text-input" runat="server" TextMode="MultiLine" 
                    Width="264px" Rows="5"></asp:TextBox>
            </td>
            <td style="text-align: left; width: 30%; vertical-align: top;">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="txtCusAdd" CssClass="notification" 
                    ErrorMessage="Chưa nhập địa chỉ" Font-Bold="True" ForeColor="Red" 
                    ValidationGroup="formCus"></asp:RequiredFieldValidator>
            </td>
        </tr>
    </table>
    
    <table style="width: 100%;">
        <tr>
            <td style="text-align: right; width: 30%; vertical-align: top;">
                <asp:Label ID="Label8" runat="server" Text="Email:"></asp:Label>
            </td>
            <td style="vertical-align: top; text-align: left; width: 40%">
                <asp:TextBox ID="txtCusEmail" CssClass="text-input" runat="server" Width="264px"></asp:TextBox>
            </td>
            <td style="text-align: left; width: 30%; vertical-align: top;">
                <br />
                <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" 
                    ControlToValidate="txtCusEmail" ErrorMessage="Nhập sai định dạng Email" 
                    Font-Bold="True" ForeColor="Red" ValidationExpression="[\w-]+@([\w-]+\.)+[\w-]+" 
                    ValidationGroup="formCus" CssClass="notification"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td style="text-align: right; width: 30%; vertical-align: top;">
                <asp:Label ID="Label21" runat="server" 
                    Text="Người giới thiệu:"></asp:Label>
            </td>
            <td style="vertical-align: top; text-align: left; width: 40%;">
                <asp:TextBox ID="txtPerson" CssClass="text-input" runat="server" Rows="3" TextMode="MultiLine" 
                    Width="264px"></asp:TextBox>
            </td>
            <td style="text-align: left; width: 30%; vertical-align: top;">
                <br />
            </td>
        </tr>
        <tr>
            <td style="text-align: right; width: 30%; vertical-align: top;">
                &nbsp;</td>
            <td>
                <asp:Button ID="Submit" class=button runat="server" Text="Hoàn thành" Width="80px" 
                    onclick="Submit_Click" ValidationGroup="formCus" /> &nbsp
                <asp:Button ID="Reset" class=button runat="server" Text="Nhập lại" Width="65px" 
                    onclick="Reset_Click" />
            </td>
            <td style="text-align: left; width: 20%">
                &nbsp;</td>
        </tr>
    </table>
    
</asp:Content>


